

# include "TestD.h"

pl_DEFINE_CLASS(TestD)

        TestD::TestD() {
    CreateObject();

    Value.Setup("Value", this);
    ListOfDoubles.Setup("ListOfDoubles", this);
    ListOfPointers.Setup("ListOfPointers", this);

    Value = 10;
}

TestD::~TestD() {
    DeleteObject();
}

//Adds a TestA
void TestD::AddA(TestA* test) {
    ListOfPointers.push_back(test);
}

//Get A
TestA* TestD::GetA(int index) {
    return ListOfPointers.at(index);
}

//Replace a at an index
void TestD::ReplaceA(int index, TestA* value) {
    ListOfPointers.replace(index, value);
}

//Gets the number of A's
int TestD::NumAs() {
    return ListOfPointers.size();
}

//Add a double
void TestD::AddDouble(double value) {
    ListOfDoubles.push_back(value);
}

//Gets a double
double TestD::GetDouble(int index) {
    return ListOfDoubles.at(index);
}

//Gets the number of doubles
int TestD::NumDoubles() {
    return ListOfDoubles.size();
}
